<?php

namespace App\Admin\Controllers;

use App\Admin\Forms\Setting;
use App\Http\Controllers\Controller;
use Dcat\Admin\Layout\Content;
use Dcat\Admin\Widgets\Card;

class SettingsController extends Controller
{
    public function index(Content $content): Content
    {
//        $content是一个固定布局对象，可以给这个对象设置header、body
        return $content
            ->header(admin_trans('global.Settings')) // 标题
            ->description(admin_trans('global.Settings')) // 介绍
            ->body(new Card(new Setting()));
    }
}
